package com.enki.cigarettes.enums;

/**
 * @author Glory
 * @version 1.0
 * @time 2018/9/7 18:00
 * @Description TODO
 */
public class ProductEnums {
    /**
     * 产品状态
     * 产品状态，编辑中为-1，审核中为0，已通过1，已驳回2，已上架3，已下架4
     */
    public enum ProductStatus {
        EDITING("编辑中", -1),
        UNDER_REVIEW("审核中", 0),
        PASSED("已通过", 1),
        DISMISSED("已驳回",2),
        ONTHSHELF("已上架",3),
        REMOVED("已下架",4);
        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        ProductStatus(String name, int type) {
            this.name = name;
            this.type = type;
        }
    }

    /**
     * 产品Sku的状态
     * 产品状态，未上架为0，上架中为1，已下架为2
     */
    public enum ProductSkuStatus {
//        NOSHELF("未上架", 0),//这个状态废弃了-不需要-只保留已上架和已下架
        ONTHESHELF("上架中", 1),
        REMOVED("已下架", 2);
        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        ProductSkuStatus(String name, int type) {
            this.name = name;
            this.type = type;
        }
    }
    /**
     * 产品审核状态
     * 审核结果，0为驳回，1为通过
     */
    public enum ProductCheckStatus {
        REJECT("驳回",0),
        PASS("通过",1);
        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        ProductCheckStatus(String name, int type) {
            this.name = name;
            this.type = type;
        }
    }

}
